package com.example.demo.controller

import com.example.demo.repo.TitleRepo
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RestController

@RestController
class TitleController {

    @Autowired
    private lateinit var titleRepo: TitleRepo

    @GetMapping("/title")
    fun getTitle() = titleRepo.findAll()

}